<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<article class="myArticle">
		<div class="article_center">
			<!-- article left 左侧 -->
			<div class="articleCenter_left">
				<div class="articleCenter_left_c">
					<div class="article_title">
						<h2>文章列表</h2>
					</div>
					<!-- article middle -->
					<div class="article_middle">
						<ul class="article_middle_list">
							<?php
								if($articleList){
									foreach($articleList as $val){
										if($val['state'] === '0'){

											$urlImg = './admin'.mb_substr($val['img'], 1);

											echo '<li>
													<div class="article_img"><img src="'. $urlImg .'" alt=""></div>
													<div class="article_middle_b">
														<h2>'. $val['title'] .'</h2>
														<p>'. $val['describe'] .'</p>
														<a href="./index.php?param=article_details&id='. $val['id'] .'">阅读详情</a>
													</div>
												</li>';
										}
									}
								}
							?>
						</ul>

						<!-- page 页码 -->
						<div class="middle_page">
						<?php
							if($maxPage > 1){

								echo strPage($page, $maxPage, $key, $param);
							}
						?>
						<p>共有：<span><?php echo $count;?></span>&nbsp条数据</p>
						</div>
					</div>
				</div>
			</div>

			<!--  article right -->
			<div class="articleCenter_right">
				<div class="article_ranking">
					<div class="article_ranking_c">
						<div class="article_title">
							<h2>排行榜</h2>
						</div>
						<div class="article_middle">
							<ul>
								<?php
									if($heat){
										$i = 0;
										foreach($heat as $val){
											$i++;
											echo '<li>
													<span>'. $i .'</span>
													<a href="./index.php?param=article_details&id='. $val['id'] .'">'. $val['title'] .'</a>
												</li>';
										}
									}
								?>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</article>
</body>
</html>